function toArr(res) {
    var shuju = []
    var n = 0;
    for (var i = 0; i < res.length; i++) {
        var obj = {
            value:'',
            lable:''
        };
        obj.value = n;
         obj.lable = res[n];
        shuju.push(obj) 
        console.log(shuju)
        n  = n+1;
    }
    return shuju
    }
    